package com.arron.DesignMode.factory.simplefactory;

/**
 * @Classname Client
 * @Date 2020/11/20 11:03
 * @Created by 刘
 */

/**
 *
 * 设计模式之简单工厂模式
 *
 */
public class Client {

    public static void main(String[] args) {
        Operation operation = OperationFactory.createOperation("+");
        operation.setNumberA(9);
        operation.setNumberB(10);
        double result = operation.getResult();
        System.out.println(result);
    }

}
